import os
import shutil

x= os.walk('.\\C1DateANalysis')

while True:
    try:

        info =next(x)
    except:
        print('__pycache__文件夹删除中')
        break

    if '__pycache__' in info [1]:

        path = os.path.join(info[0],'__pycache__')

        shutil.rmtree(path)
    
    
